package ooday01;

public class StudentTest {
    public static void main(String[] args) {
                    //引用
        //数据类型   引用类型变量    指向       对象
        Student       zjy         =    new Student();//创建对象
        zjy.name="郑";
        zjy.stuId="2020111110101";
        zjy.age=21;
        zjy.className="jsd2302";
        zjy.play("lxj");
        /*
        Student lxj=new Student();
        lxj.name="刘";
        lxj.stuId="072831";
        lxj.age=21;
        lxj.play("boyfriend");

        Student yy=new Student();
        yy.name="杜";
        yy.stuId="2131313";
        yy.age=23;
        yy.play("xiaoyan");*/

        Student ww=new Student();
        ww.stud();//引用类型有默认值
        ww.sayHi();
        ww.play("22");
    }
}
